executable("merge-fdata") {
  configs += [ "//llvm/utils/gn/build:bolt_code" ]
  deps = [
    "//llvm/include/llvm/IR:public_tablegen",
    "//llvm/lib/Support",
  ]
  sources = [ "merge-fdata.cpp" ]

  # Emit relocations for BOLT meta test
  # (bolt/test/runtime/meta-merge-fdata.test)
  if (current_os == "linux") {
    ldflags = [ "-Wl,--emit-relocs" ]
  }
}
